package com.yst.metho.web.application.reports;

import nextapp.echo2.app.Extent;
import nextapp.echo2.app.Table;

import com.yst.metho.web.application.components.table.TableHeaderCellRenderer;

public class ReportListPane extends Table
{
	/** style utilise pour afficher la table */
	private static final String LISTING_VIEW_TABLE_STYLE = "ListingView.Table";

	/** Action commande utilise sur la table */
	public static final String LISTING_VIEW_TABLE_ACTION_COMMAND = "selection";

	public ReportListPane(ReportListModel model)
	{
		this.setModel(model);
		this.setWidth(new Extent(100, Extent.PERCENT));
		this.setSelectionEnabled(true);
		this.setRolloverEnabled(true);
		this.setStyleName(LISTING_VIEW_TABLE_STYLE);
		this.setActionCommand(LISTING_VIEW_TABLE_ACTION_COMMAND);
		// mise en place du renderer de la table.
		this.setDefaultRenderer(Object.class, new ReportTableCellRenderer());
		// mise en place du renderer des entetes de table.
		this.setDefaultHeaderRenderer(new TableHeaderCellRenderer());
	}
}
